<html>
<head><meta charset="utf-8"><title>NFC vs NFD normalization of unicode identifiers · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/NFC.20vs.20NFD.20normalization.20of.20unicode.20identifiers.html">NFC vs NFD normalization of unicode identifiers</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="235432644"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/NFC%20vs%20NFD%20normalization%20of%20unicode%20identifiers/near/235432644" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gary Guo <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/NFC.20vs.20NFD.20normalization.20of.20unicode.20identifiers.html#235432644">(Apr 20 2021 at 23:39)</a>:</h4>
<p>Is there a reason that Rust NFC normalizes identifiers instead of NFD? The confusable lint, for example, need to convert all identifiers to NFD forms for comparison per <a href="https://www.unicode.org/reports/tr39/#Confusable_Detection">https://www.unicode.org/reports/tr39/#Confusable_Detection</a>. Not an Unicode expert and doesn't have a preference, just wondering why</p>



<a name="235447289"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/NFC%20vs%20NFD%20normalization%20of%20unicode%20identifiers/near/235447289" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> xiaochen <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/NFC.20vs.20NFD.20normalization.20of.20unicode.20identifiers.html#235447289">(Apr 21 2021 at 03:05)</a>:</h4>
<p><span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<a name="236676995"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/NFC%20vs%20NFD%20normalization%20of%20unicode%20identifiers/near/236676995" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tavian Barnes <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/NFC.20vs.20NFD.20normalization.20of.20unicode.20identifiers.html#236676995">(Apr 29 2021 at 13:57)</a>:</h4>
<p>NFC Is "nicer" in that it uses precomposed characters for things like é.  NFD(NFC(str)) == NFD(str) anyway, so it doesn't matter too much</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>